Replication File for "How Exile Shapes Online Opposition: Evidence from Venezuela" American Political Science Review, forthcoming.

By Jane Esberg and Alexandra A. Siegel 


** Notes **

Last run by authors on macOS Monterey v 12.1
Rstudio verison 2022.02.3 
Running R version 4.1.2 Bird Hippie

Working Directory will be automatically be set to location of VZExile_Replication folder when code files are run. 

We use aggregated data to produce the figures and tables here, since Twitter terms of use prevent sharing the raw tweet data but we include the code used to clean and aggregate the raw Twitter data. Contact authors for tweet ids to rehydrate dataset. 


** Citation **

Jane Esberg and Alexandra A. Siegel. 2022. "How Exile Shapes Online Opposition: Evidence from Venezuela.” The American Political Science Review, forthcoming.

@article{EsbergSiegel2022,
author = {Esberg, Jane and Siegel, Alexandra A.},
journal = {The American Political Science Review},
title = {{How Exile Shapes Online Opposition: Evidence from Venezuela}},
volume = {(forthcoming)},
year = {2022}
}


** Input Data **

 (in the "ReplicationData" subdirectory)
 
1. data_panel.csv
-- Monthly panel dataset including activist metadata and tweet volume by topic 

2. engagement_panel.csv
-- Monthly panel dataset including activists' engagement with foreign actors

3. prop_table.csv
-- Human-coded data for validation 

4. metadata.csv
-- Activist metadata 

5. dp_with_zeros.csv
-- Monthly panel dataset including zeros for robustness checks 
6. balanced_panel.csv
-- Balanced monthly panel dataset for robustness checks 

7. weektweets.csv
-- Weekly panel dataset for robustness checks 

8. ttest_results.csv
-- T-Test results from data development code file for plotting
9.*_terms.csv
-- Word2Vec dictionary terms for classification

** Primary Code Files **

If R files are run, they will generate the figures and tables and save them into the "plots" and "tables" subdirectories

1. Main_Text_Replication_VZ.R
-- Defines functions and produces all coefficient plots and event study plots in main text of manuscript (Figures 1-5) and their corresponding regression tables 


2. Appendix_Replication_VZ.R
-- Defines functions and produces all coefficient plots and event study plots in the appendix and their corresponding regression tables as well as robustness analyses figures and tables. 
 

** Additional Code Files **

1. VZ_source_code.R
-- Pulls required data and functions (both for main analysis and for appendix)

2. VZ_data_development.R
-- Pulls required data and functions (both for main analysis and for appendix)


